{"ast":null,"code":"import React from'react';import classNames from\"classnames\";import{checkRead,isMe}from\"../../../utils/Message\";import{jsx as _jsx}from\"react/jsx-runtime\";import{Fragment as _Fragment}from\"react/jsx-runtime\";var Status=function Status(_ref){var _ref$replyStatus=_ref.replyStatus,replyStatus=_ref$replyStatus===void 0?false:_ref$replyStatus,message=_ref.message,store=_ref.store,_ref$dialog=_ref.dialog,dialog=_ref$dialog===void 0?false:_ref$dialog;if(!replyStatus){return/*#__PURE__*/_jsx(\"div\",{className:classNames({'message__icon-read':!dialog&&isMe(message.user,store),'message__icon--doubleTicks':!dialog&&isMe(message.user,store)&&message.read&&checkRead(message.read),'message__icon--ticks':!dialog&&isMe(message.user,store)&&message.read&&!checkRead(message.read),'dialog__messageIcon-read':dialog,'dialog__messageIcon--doubleTicks':dialog&&isMe(message.user,store)&&message.read&&checkRead(message.read),'dialog__messageIcon--ticks':dialog&&isMe(message.user,store)&&message.read&&!checkRead(message.read)})});}else{return/*#__PURE__*/_jsx(_Fragment,{});}};export default Status;","map":{"version":3,"names":["React","classNames","checkRead","isMe","Status","replyStatus","message","store","dialog","user","read"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/components/Message/Status/index.tsx"],"sourcesContent":["import React from 'react';\nimport classNames from \"classnames\";\nimport {checkRead, isMe} from \"../../../utils/Message\";\nimport {StatusProps} from \"../../../models/props/StatusProps\";\n\nconst Status: React.FC<StatusProps> = ({replyStatus = false, message, store, dialog = false}) => {\n\n    if (!replyStatus) {\n        return (\n            <div className={classNames({\n                    'message__icon-read': !dialog && isMe(message.user, store),\n                    'message__icon--doubleTicks': !dialog && isMe(message.user, store) && message.read && checkRead(message.read),\n                    'message__icon--ticks': !dialog && isMe(message.user, store) && message.read && !checkRead(message.read),\n                    'dialog__messageIcon-read': dialog,\n                    'dialog__messageIcon--doubleTicks': dialog && isMe(message.user, store) && message.read && checkRead(message.read),\n                    'dialog__messageIcon--ticks':dialog && isMe(message.user, store) && message.read && !checkRead(message.read)\n                }\n            )}/>\n        );\n    } else {\n        return (<></>);\n    }\n}\n\nexport default Status;"],"mappings":"AAAA,MAAOA,MAAK,KAAM,OAAO,CACzB,MAAOC,WAAU,KAAM,YAAY,CACnC,OAAQC,SAAS,CAAEC,IAAI,KAAO,wBAAwB,CAAC,gGAGvD,GAAMC,OAA6B,CAAG,QAAhCA,OAA6B,MAA8D,2BAAzDC,WAAW,CAAXA,WAAW,2BAAG,KAAK,kBAAEC,OAAO,MAAPA,OAAO,CAAEC,KAAK,MAALA,KAAK,kBAAEC,MAAM,CAANA,MAAM,sBAAG,KAAK,aAEvF,GAAI,CAACH,WAAW,CAAE,CACd,mBACI,YAAK,SAAS,CAAEJ,UAAU,CAAC,CACnB,oBAAoB,CAAE,CAACO,MAAM,EAAIL,IAAI,CAACG,OAAO,CAACG,IAAI,CAAEF,KAAK,CAAC,CAC1D,4BAA4B,CAAE,CAACC,MAAM,EAAIL,IAAI,CAACG,OAAO,CAACG,IAAI,CAAEF,KAAK,CAAC,EAAID,OAAO,CAACI,IAAI,EAAIR,SAAS,CAACI,OAAO,CAACI,IAAI,CAAC,CAC7G,sBAAsB,CAAE,CAACF,MAAM,EAAIL,IAAI,CAACG,OAAO,CAACG,IAAI,CAAEF,KAAK,CAAC,EAAID,OAAO,CAACI,IAAI,EAAI,CAACR,SAAS,CAACI,OAAO,CAACI,IAAI,CAAC,CACxG,0BAA0B,CAAEF,MAAM,CAClC,kCAAkC,CAAEA,MAAM,EAAIL,IAAI,CAACG,OAAO,CAACG,IAAI,CAAEF,KAAK,CAAC,EAAID,OAAO,CAACI,IAAI,EAAIR,SAAS,CAACI,OAAO,CAACI,IAAI,CAAC,CAClH,4BAA4B,CAACF,MAAM,EAAIL,IAAI,CAACG,OAAO,CAACG,IAAI,CAAEF,KAAK,CAAC,EAAID,OAAO,CAACI,IAAI,EAAI,CAACR,SAAS,CAACI,OAAO,CAACI,IAAI,CAC/G,CAAC,CACH,EAAE,CAEZ,CAAC,IAAM,CACH,mBAAQ,kBAAK,CACjB,CACJ,CAAC,CAED,cAAeN,OAAM"},"metadata":{},"sourceType":"module"}